From 834ee3905ad6aabd93255dfeae0ad0448c9b20f1 Mon Sep 17 00:00:00 2001 From: robertlipe Date: Sun, 29 Jun 2014 18:30:35 +0000 Subject: [PATCH] Change device discovery to work with 276C in serial mode. --- gpsbabel/jeeps/gpsapp.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gpsbabel/jeeps/gpsapp.cc b/gpsbabel/jeeps/gpsapp.cc index ebebfe554..a3a98d6ad 100644 --- a/gpsbabel/jeeps/gpsapp.cc +++ b/gpsbabel/jeeps/gpsapp.cc @@ -325,7 +325,10 @@ static int32 GPS_A000(const char* port) goto carry_on; } - if (GPS_Packet_Read(fd, &rec) <= 0) { + // Garmin 276C serial - not USB - sees a zero here, so we changed + // <= 0 to <0 on 2014-06-29 per Pierre Brial. + + if (GPS_Packet_Read(fd, &rec) < 0) { goto carry_on; } -- 2.30.2